package com.itheima.method;

public class TestChange {
    public static void main(String[] args) {
        int a = 20;
        System.out.println("调用前"+a);
        change(a);
        System.out.println("调用后"+a);

        int[] arr = {2,8,6,1};
        System.out.println("调用前:"+arr[0]);
        change(arr);
        System.out.println("调用后"+arr[0]);
    }

    private static void change(int a) {
        a = 200;
    }
    private static void change(int[] arr) {
        arr[0] = 200;
    }
}
